package com.ym.medical.domain.entity;


import com.ym.common.constant.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;


@Data
@ApiModel(value = "云景科室表")
public class NavDestYjEntity extends BaseEntity{
	@ApiModelProperty(notes = "id")
	@NotNull(message = "id不能为空!", groups = {Update.class})
	private Long id;

	@ApiModelProperty(notes = "医院名称")
	@Size(max = 64, message = "医院名称长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String bdgName;

	@ApiModelProperty(notes = "医院编码")
	@Size(max = 32, message = "医院编码长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String bdgId;

	@ApiModelProperty(notes = "楼群名称")
	@Size(max = 64, message = "楼群名称长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String bdName;

	@ApiModelProperty(notes = "楼群编码")
	@Size(max = 32, message = "楼群编码长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String bdId;

	@ApiModelProperty(notes = "科室名称")
	@Size(max = 64, message = "科室名称长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String deptName;

	@ApiModelProperty(notes = "科室编码(item_id)")
	@Size(max = 32, message = "科室编码(item_id)长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String deptCode;

	@ApiModelProperty(notes = "楼层编码")
	@Size(max = 32, message = "楼层编码长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String flId;

	@ApiModelProperty(notes = "类别(01科室/02诊室)")
	@Size(max = 2, message = "类别(01科室/02诊室)长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String deptType;

	@ApiModelProperty(notes = "创建人")
	private Long creator;

	@ApiModelProperty(notes = "创建时间")
	@NotNull(message = "创建时间不能为空!", groups = {Add.class})
	private Date createTime;

	@ApiModelProperty(notes = "修改人")
	private Long modifier;

	@ApiModelProperty(notes = "修改时间")
	@NotNull(message = "修改时间不能为空!", groups = {Add.class})
	private Date modifyTime;

	@ApiModelProperty(notes = "")
	private Double lat;

	@ApiModelProperty(notes = "")
	private Double lng;

	@ApiModelProperty(notes = "楼号")
	@Max(value = 2147483647, message = "楼号最大值不能高于{value}", groups = {Add.class, Update.class})
	@Min(value = -2147483648, message = "楼号最小值不能低于{value}", groups = {Add.class, Update.class})
	private Integer flNum;

	@ApiModelProperty(notes = "类别(01科室/02诊室)")
	private String deptTypeName;

	public interface Add {

	}

	public interface Update {

	}

}